Skip to content

Conversation

@natalialuzuriaga
Copy link
Collaborator

@natalialuzuriaga natalialuzuriaga commented Sep 26, 2025

Cookiecutter: Update code.json generation to reflect current schema

Problem

Currently, code.json generation using cookiecutter doesn't follow the current code.json schema. We would like to update this accordingly.

Solution

  • Update date object calculation to match UTC format like in codejson-generator and GitHub action
  • Update usageType to be an array
  • Various updates to field values and types

Result

Users can run cookiecutter to create a code.json file for their repository that matches the latest V2.0.0 schema

Test Plan

Ran jsonschema cli with generated code.json files against latest schema and passes

@natalialuzuriaga natalialuzuriaga marked this pull request as ready for review October 1, 2025 19:56
@natalialuzuriaga natalialuzuriaga changed the title Update codejson cookiecutter to reflect current schema in tier 0 Update cookiecutter codejson generation to reflect current schema Oct 1, 2025
@natalialuzuriaga natalialuzuriaga changed the title Update cookiecutter codejson generation to reflect current schema Cookiecutter: Update code.json generation to reflect current schema Oct 1, 2025
Copy link
Contributor

@decause-gov decause-gov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM +1 🚢

decause-gov
decause-gov previously approved these changes Oct 8, 2025
Copy link
Contributor

@decause-gov decause-gov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM +1 🚢

@natalialuzuriaga natalialuzuriaga changed the base branch from dev to main October 9, 2025 20:19
@natalialuzuriaga natalialuzuriaga dismissed decause-gov’s stale review October 9, 2025 20:19

The base branch was changed.

@natalialuzuriaga natalialuzuriaga merged commit 9a7aac8 into main Oct 9, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants